<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
</head>

<body>

    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <button>please,order</button>
    <script>
        //隐式迭代   给所有的按钮绑定点击事件
        $("button").click(function() {

            $(this).css("background", "pink"); //给当前点击的这个按钮添加背景颜色
            $(this).siblings("button").css("background", ""); //其余颜色没有

        })
    </script>
</body>

</html>